package com.cropdoctor.model.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("publish_course")
@ApiModel(value = "PublishCoursePo",description = "发布课程相关Po")
public class PublishCoursePo {
  @TableId
  private long id;
  @ApiModelProperty(value = "上传人id",example = "1")
  private long uploaderId;
  @ApiModelProperty(value = "发布状态（1为展示，0为不展示）",example = "1")
  private String status;
  @ApiModelProperty(value = "标题",example = "西瓜种植小技巧")
  private String title;
  @ApiModelProperty(value = "描述",example = "今天这个视频教大家如何种植西瓜")
  private String description;
  private String url;
  @ApiModelProperty(value = "创建日期",example = "2024-02-04")
  private LocalDate createDate;
  @TableField(fill = FieldFill.UPDATE)
  @ApiModelProperty(value = "更新日期",example = "2024-02-04")
  private LocalDate updateDate;
  private String mt;
  private String st;
}
